#pragma once

#include <QtCore/QString>
#include <QtGui/QImage>

#include "utils.h"

/*----------------------------------------------------------------------------*/

class ImageLoader
{
/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	ImageLoader();

	~ImageLoader();

	bool LoadBmpFilesToImages( const QString& _trainFilesDir );

	ImageV& GetImages();

	CImage* CreateImageFromBmp( QImage& _image, int _activeOutput = 0 );

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	QStringList BrowseFiles( const QString& _trainFilesDir );

	CImage* CreateImageFromBmp( QString& _fileName );	

	int GetPixelGreyBright( QImage& _image, int _i, int _j );

/*----------------------------------------------------------------------------*/

	ImageV m_imageArray;

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/
